import layouts from '../layouts';
import login from '../pages/login';
import dashboard from '../pages/dashboard';
import role from '../pages/role';
import user from '../pages/user';
import forbiden from '../pages/forbiden';

export default [
    {
        path: '/login',
        component: login,
        // requireLogin: false,
    },
    {
        path: '/admin',
        component: layouts,
        children: [
            {
                path: '/admin/dashboard',
                component: dashboard,
            },
            {
                path: '/admin/role',
                component: role,
                role: [1],
            },
            {
                path: '/admin/user',
                component: user,
            },
            {
                path: '/admin/403',
                component: forbiden,
            },
        ],
    },
];
